only use ${SO_MAJOR} for cmake SOVERSION
use 1.2.0 for version in cmake
use only abi version for VERSION property in cmake
project (utf8proc C)
+# Be sure to also update these in Makefile!
+set(SO_MAJOR 1)
+set(SO_MINOR 2)
+set(SO_PATCH 0)
+
add_definitions (
-DUTF8PROC_EXPORTS
)
utf8proc.h
)
-set_property (TARGET utf8proc PROPERTY POSITION_INDEPENDENT_CODE ON)
+set_target_properties (utf8proc PROPERTIES
+ POSITION_INDEPENDENT_CODE ON
+ VERSION "${SO_MAJOR}.${SO_MINOR}.${SO_PATCH}"
+ SOVERSION ${SO_MAJOR}
+)
# from the utf8proc version number because it indicates ABI compatibility,
# not API compatibility: MAJOR should be incremented whenever *binary*
# compatibility is broken, even if the API is backward-compatible
+# Be sure to also update these in CMakeLists.txt!
MAJOR=1
MINOR=2
PATCH=0